package user;

import book.BookList;
import ioperations.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-19
 * Time: 22:17
 */
public abstract class User {
    protected String name;
    public IOperation[] ioperations;

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();
    public void doIoperation(int choice, BookList bookList) {
        ioperations[choice].work(bookList);
    }
}
